<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <title>角色列表--layui后台管理模板 2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/css/public.css" media="all" />
</head>
<body class="childrenBody">
<div class="layui-fluid">
    <div class="layui-row">
        <div class="layui-col-xs12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-row">
                        <div class="layui-col-md2">
                            <div class="eleTree ele1" lay-filter="treeDept"></div>
                        </div>
                        <div class="layui-col-md10">
                            <form class="layui-form">
                                <div class="btn-reload" style="margin-bottom: 10px;">
                                    <div class="layui-inline">
                                        <input class="layui-input" id="filter_loginName" autocomplete="off" placeholder="登录名">
                                    </div>
                                    <div class="layui-inline">
                                        <input class="layui-input" id="filter_phonenumber" autocomplete="off" placeholder="手机号">
                                    </div>
                                    <button class="layui-btn" data-type="reload">搜索</button>
                                </div>
                            </form>

                            <table id="table_user" lay-filter="tableUser">
                            </table>

                            <script type="text/html" id="col_operation">
                                <@shiro.hasPermission name="system:user:edit">
                                <a  class="layui-btn layui-btn-xs" href="javascript:;" lay-event="edit"><i class="fa fa-edit"></i>编辑</a>
                                </@shiro.hasPermission >
                                <@shiro.hasPermission name="system:user:remove">
                                <a  class="layui-btn layui-btn-xs" href="javascript:;" lay-event="del"><i class="fa fa-remove"></i>删除</a>
                                </@shiro.hasPermission >
                                <a class="layui-btn layui-btn-xs" href="javascript:;" lay-event="reset"><i class="fa fa-key"></i>重置</a>
                            </script>
                            <script type="text/html" id="tmplUserStatus">
                                {{#  if(d.status == 0){ }}
                                <input type="checkbox" lay-filter="filter-switchUserStatus" value="{{d.id}}" name="switchUserStatus" lay-skin="switch" checked="true">
                                {{#  } else { }}
                                <input type="checkbox" lay-filter="filter-switchUserStatus" value="{{d.id}}" name="switchUserStatus" lay-skin="switch">
                                {{#  } }}
                            </script>
                            <script type="text/html" id="table_user_toolbar">
                                <@shiro.hasPermission name="system:user:add">
                                <div class="layui-btn-container" >
                                    <button  class="layui-btn layui-btn-sm" lay-event="createUser">新增用户</button>
                                </div>
                                </@shiro.hasPermission >
                            </script>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="/layui/polyfill.min.js"></script>
<script type="text/javascript" src="/layui/layui.js"></script>
<script type="text/javascript" src="/layui/swotadmin.js"></script>
<script type="text/javascript">
    var prefix = "/system/user";
</script>
<script>
    layui.config({
        base:'/js/system/user/'
    }).use(['list'], function(){
        var user = layui.list;
        user.init({
            "prefix":prefix

        });
    });
</script>
</body>
</html>